/**
 * @author Andre Lisson, Patrick Fiedler
 * @version Eclipse 3.6
 * @since 04.05.2011
 * letzte Aenderung: 04.07.2011
 * 
 * Beschreibung: beinhaltet Adressinformationen inkl. Namen der Kunden
 */

package kunde;

import java.io.Serializable;

public class Adresse implements Serializable {
// - - - Attribute - - -
	private static final long serialVersionUID = 3985477955154159004L;
	protected String name;
	protected String strasse_hnr;
	protected String plz;
	protected String ort;

// - - - Constructor - - -
	public Adresse(String name, String strasseHnr, String plz, String ort) {
		this.name = name;
		this.strasse_hnr = strasseHnr;
		this.plz = plz;
		this.ort = ort;
	}

// - - - Setter and Getter - - -
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStrasse_hnr() {
		return strasse_hnr;
	}

	public void setStrasse_hnr(String strasse_hnr) {
		this.strasse_hnr = strasse_hnr;
	}

	public String getPlz() {
		return plz;
	}

	public void setPlz(String plz) {
		this.plz = plz;
	}

	public String getOrt() {
		return ort;
	}

	public void setOrt(String ort) {
		this.ort = ort;
	}

// - - - sonstige Methoden - - -
	public String toString() {
		return "[" + name + "]";
	}

	public String toCSV() {
		return name + "," + strasse_hnr + "," + plz + "," + ort;
	}

}
